<template>
  <div class="spaceHome-container">
    <el-col :span="10">
      <el-statistic
        ref="statistic"
        @finish="hilarity"
        format="HH:mm:ss"
        :value="deadline"
        title="距离明日："
        time-indices
      >
      </el-statistic>
    </el-col>
  </div>
</template>

<script>
export default {
  data() {
    return {
      deadline: Date.now() + (new Date().setHours(23, 59, 59) - Date.now()),
    }
  }, methods: {
    hilarity() {
      this.$notify({
        title: "提示",
        message: "时间已到",
        duration: 0,
      });
    },
  }
}
</script>

<style scoped>

</style>